package com.indeep.user.mapper.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("app_user_portrait")
public class AppUserPortraitPO implements Serializable {
    private static final long serialVersionUID = 7914486453821260755L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;

    private Integer age;

    private Integer sex;

    private Long tag;


    /**
     * 创建时间-创建时自动填充
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间-创建与修改时自动填充
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
